##
## Makefile for libmy.a in /home/vanet_c//proj-kw/lib
## 
## Made by charles-edouard vanet
## Login   <vanet_c@epitech.net>
## 
## Started on  Thu Dec  6 11:52:14 2012 charles-edouard vanet
## Last update Tue Dec 11 19:52:58 2012 charles-edouard vanet
##

NAME=	libmy.a

RM=	rm -f

SRC=	my_convert_base.c \
	my_getnbr_base.c \
	my_power_rec.c \
	my_putchar.c \
	my_putstr.c \
	my_realloc.c \
	my_strcat.c \
	my_strcmp.c \
	my_strcpy.c \
	my_strdup.c \
	my_strlen.c \
	char_count.c \
	my_get_next_line.c \
	my_char_is_num.c \
	my_char_is_alpha.c \
	my_error.c \
	my_free_tab.c \
	my_put_nbr.c \
	my_str_to_wordtab.c \
	my_strncmp.c \
	my_getnbr.c

OBJ=	$(SRC:.c=.o)

$(NAME):	$(OBJ)
	ar rc $(NAME) $(OBJ)
	ranlib $(NAME)
	cp libmy.a ../libmy.a
	cp my.h ../includes/my.h

all:	$(NAME)

clean:
	$(RM) *.o
	$(RM) *#
	$(RM) *~

fclean:	clean
	$(RM) $(NAME)
	$(RM) ../$(NAME)
	$(RM) ../includes/my.h

re:	fclean all
